package com.zhl.gradledemo.mapper;

import com.zhl.gradledemo.model.Article;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by Administrator on 2018/10/12.
 */
//@Mapper
public interface ArticleMapper extends Mapper<Article> {

    //添加日记
    int addArticle(Article article);
    List<Article> articleList(@Param("pageNumber") int pageNumber, @Param("pageSize") int pageSize, @Param("articleType") String articleType, @Param("title") String title);
    int updateArticle(Article article);
    int deleteArticle(@Param("id") int id);
    int getCount();

}
